﻿/*

/-----------------------------------------------\
|          CODE by Kirati Isarapungpun          |
|       For North - Chiang Mai University       |
|       Software Engineering Project 2013       |
|                                               |
|  |-|>===================================<|-|  |
|                                               |
|       Course planning for Bachelor of         |
| Science degree in software engineering 2012   | 
|      Faculty of Science and Technology,       |
|        North - Chiang Mai University          |
|                                               |
\-----------------------------------------------/

/												\
	mainAdmin	:	หน้า main เพื่อเรียกใช้ออฟชั่นต่างๆ   
\												/


*/
$(function()
{
	$('#logout').button();
	$('#li_plan').button().css({'text-align': 'left','width': '280','height': '40'});
	$('#li_course').button().css({'text-align': 'left','width': '280','height': '40'});
	$('#li_subject').button().css({'text-align': 'left','width': '280','height': '40'});
	$('#li_deparment').button().css({'text-align': 'left','width': '280','height': '40'});
	$('#li_group').button().css({'text-align': 'left','width': '280','height': '40'});
	$('#li_teacher').button().css({'text-align': 'left','width': '280','height': '40'});
	//checklogin();
});

function plan_button()
{
	$.get('ui/managePlan.php',function(data)
	{
		$('#workarea').html(data);
	});
}

function course_button()
{
	$.get('ui/manageCourse.php',function(data)
	{
		$('#workarea').html(data);
	});
}

function subject_button()
{
$.get('ui/manageSubject.php',function(data)
	{
		$('#workarea').html(data);
	});
}

function deparment_button()
{
	$.get('ui/manageDep.php',function(data)
	{
		$('#workarea').html(data);
	});
}

function group_button()
{
	$.get('ui/manageGroup.php',function(data)
	{
		$('#workarea').html(data);
	});
}

function teacher_button()
{
	$.get('ui/manageTeacher.php',function(data)
	{
		$('#workarea').html(data);
	});
}